﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CNVP.Framework.Utils;
using CNVP.JShop.UI;

namespace CNVP.JShop.Web.Admin.CommonWindows
{
    public partial class AjaxGetReviewStat : AdminPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            var cid = Request.Form["cid"];
            if (String.IsNullOrEmpty(cid) || !Public.IsNumber(cid))
            {
                Response.Write("{result:'0'}");
                Response.End();
            }
            Model.CNVP_Column model = new BLL.CNVP_Column().GetSingle_CNVP_ColumnById(Convert.ToInt32(cid));
            if (model == null)
            {
                Response.Write("{result:'0'}");
                Response.End();
            }
            else
            {
                Response.Write("{result:'" + model.AllowReview + "'}");
                Response.End();
            }
        }
    }
}